package com.hand.liut.service;

import com.hand.liut.entity.CommonResult;
import com.hand.liut.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: lxx
 * @Description: TODO
 * @DateTime: 2022/7/20 19:13
 **/
@Service
@FeignClient(value = "cloud-provider-payment-hystrix")
public interface ConsumerPaymentFeignHystrix {

  @GetMapping(value = "/hystrix/run_ok/{id}")
  public String run_ok(@PathVariable("id") Integer id);

  @GetMapping(value = "/hystrix/run_timeout/{id}")
  public String run_timeout(@PathVariable("id") Integer id);
}

